<include file="Public:top" />
<!--头部 end-->
<script type="text/javascript" src="__PUBLIC__/js/ajaxfileupload.js"></script>
 <include file="Public:menu" /> 
 <!--菜单 end-->
<form  id='crewForm' >
			<div class="form-group">
                    <div class="label"><label for="title">姓名</label></div>
                    <div class="field">
                        <input type="text" class="input"  name="name" size="20" value="{$result.name}" placeholder="姓名" data-validate="required:请填写姓名，建议在6字以内。" style="width:40%;" />
                    </div>
            </div>
            <div class="form-group">
                <div class="label"><label for="title">性别</label></div>
                <div class="field">
                    <input type="text" class="input"  name="sex" size="20" value="{$result.sex}" placeholder="性别" data-validate="required:请填写姓名，建议在6字以内。" style="width:40%;" />
                </div>
            </div>
            <div class="form-group">
                <div class="label"><label for="title">年龄</label></div>
                <div class="field">
                    <input type="text" class="input"  name="gre" size="20" value="{$result.gre}" placeholder="年龄" data-validate="required:请填写姓名，建议在6字以内。" style="width:40%;" />
                </div>
            </div>

            <div class="form-group">
                    <div class="label"><label for="title">电话</label></div>
                    <div class="field">
                        <input type="text" class="input" name="tel" size="20" value="{$result.tel}" placeholder="电话" style="width:20%;" />
                    </div>
            </div>

             <div class="form-group">
                    <div class="label"><label for="title">科室</label></div>
                    <div class="field">
                        <input type="text" class="input"  name="ks" size="20" value="{$result.ks}" placeholder="科室" style="width:20%;" />
                    </div>
            </div>
            <div class="form-group">
                <div class="label"><label for="readme">描述</label></div>
                <div class="field">
                    <textarea class="input" name="ag_cont" rows="5" cols="50" placeholder="描述" data-validate="required:备注更新">{$result.ag_cont}</textarea>
                </div>
            </div>

            <div class="form-group">
                    <div class="label"><label for="title">请求地址</label></div>
                    <div class="field">
                        <input type="text" class="input"  name="http_url" size="20" value="{$result.http_url}" placeholder="请求地址" style="width:20%;" />
                    </div>
            </div>

            <div class="form-group">
                    <div class="label"><label for="title">预约时间</label></div>
                    <div class="field">
                        <input type="text" class="input" id="yuyuedata" name="yuyuedata" size="20" value="{$result.yuyuedata}" placeholder="时间" style="width:20%;" />
                    </div>
            </div>

            <div class="form-group">
                    <div class="label"><label for="title">请求时间</label></div>
                    <div class="field">
                        <input type="text" class="input" name="addtime" size="20" value="{$result.addtime}" placeholder="请求时间" style="width:20%;" />
                    </div>
            </div>

            <div class="form-group">
                    <div class="label"><label for="title">请求IP</label></div>
                    <div class="field">
                        <input type="text" class="input"  name="dy_ip" size="20" value="{$result.dy_ip}" placeholder="请求IP" style="width:20%;" />
                    </div>
            </div>

            <div class="form-group">
                    <div class="label"><label for="title">处理状态</label></div>
                    <div class="field">
                        <input type="text" class="input"  name="isdl" size="20" value="{$result.isdl}" placeholder="处理状态" style="width:20%;" />0：未处理》1：有效》2：无效》3：已到院
                    </div>
            </div>

            <div class="form-group">
                    <div class="label"><label for="title">处理时间</label></div>
                    <div class="field">
                        <input type="text" class="input" id="cl_time"  name="cl_time" size="20" value="{$result.cl_time}" placeholder="处理时间" style="width:20%;" />
                    </div>
            </div>

             <div class="form-group">
                    <div class="label"><label for="readme">备注更新</label></div>
                    <div class="field">
                        <textarea class="input" name="bz_cont" rows="5" cols="50" placeholder="备注更新" data-validate="required:备注更新">{$result.bz_cont}</textarea>
                    </div>
                </div>
                            <input type="hidden" name="id" value="{$result.id}">
       <div class="form-button" align="center"><button class="button bg-main" id="sure" type="submit">提交</button></div>

</form>


  <include file="Public:box" /> 
 <!--底部 end-->
 <script>
    //常规用法时间
    laydate.render({
      elem: '#yuyuedata'
    });

    //常规用法时间
    laydate.render({
      elem: '#cl_time'
    });
    

    //异步表单提交
        $('#sure').click(function(){

            $.post('/Console/Blyuyue/doUpdate',$('form').serialize(),function(data){

                if ( data.status )
                {
                    layer.alert(data.info, 1);

                    //刷新当前页
                    location.href = "/Console/Blyuyue";
                }
                else
                {

                    layer.alert(data.info);

                }

            },'json');

            return false;

        })

      

  

</script>